<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <title>微信</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        img {
            border: 0;
            vertical-align: middle;
        }
        .clearfix:after {
            content: "";
            display: table;
            clear: both;
        }
        #head {
            width: 100%;
        }
        #head #header {
            height: 50px;
            background:#f2f2f2;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 999;
        }
        #head #header img {
            position: absolute;
            top: 25%;
            right: 5%;
        }
        #head #header p {
            margin-left: 20px;
            font-size: 20px;
            line-height: 50px;
        }
        #search {
            background: #F2F2F2;
            padding: 2%;
            margin-top: 50px;
            text-align: center;
            height: 36px;
            line-height: 36px;
        }
        #search .input {
            background: #fff;
            border-radius: 4px;
        }
        #search .input span {
            width: 20px;
            height: 20px;
            background: url("搜索.png") no-repeat 6px center;
            padding-left: 30px;
        }
        #middle .chat {
            width: 100%;
        }
        #middle .pic {
            float: left;
            width:22%;
            padding:2%;
            box-sizing: border-box;
        }
        #middle img {
            border-radius: 5px;
        }
        #middle .txt {
            float: left;
            width:78%;
        }
        #middle .title {
            font-weight: 900;
            font-size: 18px;
            margin-top: 2%;
        }
        #middle .msg {
            font-size: 16px;
            color: #999;
            margin-top:2%;
        }
        #middle .xian {
            margin-top: 2%;
            border-bottom: 1px solid #f2f2f2;
        }
        #middle .time {
            float: right;
            color: grey;
            font-size: 14px;
            margin: -65px 15px;
        }

        .fl {
            float: left;
        }

        #nav {
            height: 70px;
            background: #f2f2f2;
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            z-index: 999;
        }

        #nav .foot {
            width: 25%;
            text-align: center;
        }

        #nav .foot img {
            padding: 8px 0;
        }

        .add_menu {
            display: none;
        }
        .add_menu ul {
            list-style: none;
            width:160px;
            height: 246px;
            background: #666666;
            position: absolute;
            right: 5%;
            top:4%;
        }
        .add_menu ul li:nth-of-type(1) {
            border-radius:10px;
            margin-top: 20px;
        }
        .add_menu ul li {
            padding: 6%;
        }
        .add_menu ul li span {
            color: #fff;
            width: 60%;
            display: inline-block;
            font-size: 18px;
            margin-left: 10%;
            padding:4% 0;
            border-bottom: 1px solid #fff;
        }
    </style>
</head>
<body>
<div id="all">
    <div id="head">
        <div id="header"><p>微信</p>
            <img src="添加.png" height="24" width="24" onclick="show()"/>
        </div>
    </div>
    <div id="search">
        <div class="input">
            <span>搜索</span>
        </div>
    </div>
    <!--聊天列表开始-->
    <section id="middle">
        <div class="chatlist">
            <div class="chat clearfix">
                <div class="pic clearfix">
                    <img src="5.jpg" width="56px"/>
                </div>
                <div class="txt clearfix">
                    <div class="title">안녕</div>
                    <div class="msg">再见 好好生活</div>
                    <div class="xian"></div>
                </div>
                <div class="time clearfix">晚上21:48</div>
            </div>
            <div class="chat clearfix">
                <div class="pic clearfix">
                    <img src="3.png" width="56px"/></div>
                <div class="txt clearfix">
                    <div class="title">마지막</div>
                    <div class="msg">你说出了这最后的问候</div>
                    <div class="xian"></div>
                </div>
                <div class="time clearfix">晚上21:48</div>
            </div>
            <div class="chat clearfix">
                <div class="pic clearfix">
                    <img src="5.jpg" width="56px"/></div>
                <div class="txt clearfix">
                    <div class="title">너를</div>
                    <div class="msg">凝望着你</div>
                    <div class="xian"></div>
                </div>
                <div class="time clearfix">晚上21:48</div>
            </div>
            <div class="chat clearfix">
                <div class="pic clearfix">
                    <img src="3.png" width="56px"/></div>
                <div class="txt clearfix">
                    <div class="title">한참</div>
                    <div class="msg">许久之后 傻傻地哭了</div>
                    <div class="xian"></div>
                </div>
                <div class="time clearfix">晚上21:48</div>
            </div>
            <div class="chat clearfix">
                <div class="pic clearfix">
                    <img src="5.jpg" width="56px"/></div>
                <div class="txt clearfix">
                    <div class="title">너와</div>
                    <div class="msg">在和你常来的汉江前</div>
                    <div class="xian"></div>
                </div>
                <div class="time clearfix">晚上21:48</div>
            </div>
            <div class="chat clearfix">
                <div class="pic clearfix">
                    <img src="3.png" width="56px"/></div>
                <div class="txt clearfix">
                    <div class="title">이렇게</div>
                    <div class="msg">没想到就这样结束了</div>
                    <div class="xian"></div>
                </div>
                <div class="time clearfix">晚上21:48</div>
            </div>
            <div class="chat clearfix">
                <div class="pic clearfix">
                    <img src="5.jpg" width="56px"/></div>
                <div class="txt clearfix">
                    <div class="title">오늘</div>
                    <div class="msg">今天莫名地本不愿来汉江边</div>
                    <div class="xian"></div>
                </div>
                <div class="time clearfix">晚上21:48</div>
            </div>
            <div class="chat clearfix">
                <div class="pic clearfix">
                    <img src="3.png" width="56px"/></div>
                <div class="txt clearfix">
                    <div class="title">이상하게</div>
                    <div class="msg">很奇怪有种不好的预感</div>
                    <div class="xian"></div>
                </div>
                <div class="time clearfix">晚上21:48</div>
            </div>
            <div class="chat clearfix">
                <div class="pic clearfix">
                    <img src="5.jpg" width="56px"/></div>
                <div class="txt clearfix">
                    <div class="title">나만</div>
                    <div class="msg">唯有我独自掉泪</div>
                    <div class="xian"></div>
                </div>
                <div class="time clearfix">晚上21:48</div>
            </div>
            <div class="chat clearfix">
                <div class="pic clearfix">
                    <img src="3.png" width="56px"/></div>
                <div class="txt clearfix">
                    <div class="title">아픈척하</div>
                    <div class="msg">早知道装作不舒服不要出门了</div>
                    <div class="xian"></div>
                </div>
                <div class="time clearfix">晚上21:48</div>
            </div>
        </div>
    </section>
    <!--聊天列表结束-->
    <!--底部导航-->
    <footer id="nav" class="clearfix">
        <div class="foot fl clearfix">
            <img src="微信.png" width="28"/>
            <p>微信</p>
        </div>
        <div class="foot fl clearfix">
            <img src="通讯录.png" width="28"/>
            <p>通讯录</p>
        </div>
        <div class="foot fl clearfix">
            <img src="发现.png" width="28"/>
            <p>发现</p>
        </div>
        <div class="foot fl clearfix">
            <img src="我.png" width="28"/>
            <p>我</p>
        </div>
    </footer>
</div>
<!--底部导航-->
<!--侧边栏-->
<div class="add_menu" id="addMenu">
    <!--<div class="Menu">-->
        <!--<div><img src="群聊.png" width="28px"/><span>发起群聊</span></div>-->
        <!--<div><img src="用户添加.png" width="28px"/><span>添加朋友</span></div>-->
        <!--<div><img src="扫一扫.png" width="28px"/><span>扫一扫</span></div>-->
        <!--<div><img src="收付款管理.png" width="28px"/><span>收付款</span></div>-->
    <!--</div>-->
    <ul>
        <li><img src="群聊.png" width="28px"/><span>发起群聊</span></li>
        <li><img src="用户添加.png" width="28px"/><span>添加朋友</span></li>
        <li><img src="扫一扫.png" width="28px"/><span>扫一扫</span></li>
        <li><img src="收付款管理.png" width="28px"/><span>收付款</span></li>
    </ul>
</div>
<!--脚本语言-->
<script>
    var i = 0;

    function show() {
        if (i == 0) {
            addMenu.style.display = "block";
            i = 1;
        } else {
            addMenu.style.display = "none";
            i = 0;
        }
    }
</script>
<!--脚本语言-->
</body>
</html>